package com.foreverwin.mes.lims.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 
 * </p>
 *
 * @author Levy
 * @since 2020-03-27
 */
public class InspectPlanDetail extends Model<InspectPlanDetail> {

    private static final long serialVersionUID = 1L;

   @TableId(value = "HANDLE", type = IdType.INPUT)
   private String handle;
    /**
     * 检验计划主键
     */
   @TableField("PLAN_BO")
   private String planBo;
    /**
     * 检验类型
     */
   @TableField("INSPECT_TYPE")
   private String inspectType;
    /**
     * 类别
     */
   @TableField("CATEGORY")
   private String category;
    /**
     * 时间
     */
   @TableField("TIME")
   private String time;
    /**
     * 时间单位
     */
   @TableField("UNIT")
   private String unit;
    /**
     * 批次间隔
     */
   @TableField("BATCH_INTERVAL")
   private String batchInterval;
    /**
     * 是否取样
     */
   @TableField("IS_SAMPLE")
   private String isSample;
    /**
     * 样本数量
     */
   @TableField("SAMPLE_STANDARD")
   private String sampleStandard;
    /**
     * 检验项目
     */
   @TableField("INSPECT_PROJECT")
   private String inspectProject;
    /**
     * 项目版本
     */
   @TableField("REVISION")
   private String revision;
    /**
     * 检验证明
     */
   @TableField("INSPECT_CERTIFICATE")
   private String inspectCertificate;


   public String getHandle() {
      return handle;
   }

   public void setHandle(String handle) {
      this.handle = handle;
   }

   public String getPlanBo() {
      return planBo;
   }

   public void setPlanBo(String planBo) {
      this.planBo = planBo;
   }

   public String getInspectType() {
      return inspectType;
   }

   public void setInspectType(String inspectType) {
      this.inspectType = inspectType;
   }

   public String getCategory() {
      return category;
   }

   public void setCategory(String category) {
      this.category = category;
   }

   public String getTime() {
      return time;
   }

   public void setTime(String time) {
      this.time = time;
   }

   public String getUnit() {
      return unit;
   }

   public void setUnit(String unit) {
      this.unit = unit;
   }

   public String getBatchInterval() {
      return batchInterval;
   }

   public void setBatchInterval(String batchInterval) {
      this.batchInterval = batchInterval;
   }

   public String getIsSample() {
      return isSample;
   }

   public void setIsSample(String isSample) {
      this.isSample = isSample;
   }

   public String getSampleStandard() {
      return sampleStandard;
   }

   public void setSampleStandard(String sampleStandard) {
      this.sampleStandard = sampleStandard;
   }

   public String getInspectProject() {
      return inspectProject;
   }

   public void setInspectProject(String inspectProject) {
      this.inspectProject = inspectProject;
   }

   public String getRevision() {
      return revision;
   }

   public void setRevision(String revision) {
      this.revision = revision;
   }

   public String getInspectCertificate() {
      return inspectCertificate;
   }

   public void setInspectCertificate(String inspectCertificate) {
      this.inspectCertificate = inspectCertificate;
   }

   public static final String HANDLE = "HANDLE";

   public static final String PLAN_BO = "PLAN_BO";

   public static final String INSPECT_TYPE = "INSPECT_TYPE";

   public static final String CATEGORY = "CATEGORY";

   public static final String TIME = "TIME";

   public static final String UNIT = "UNIT";

   public static final String BATCH_INTERVAL = "BATCH_INTERVAL";

   public static final String IS_SAMPLE = "IS_SAMPLE";

   public static final String SAMPLE_STANDARD = "SAMPLE_STANDARD";

   public static final String INSPECT_PROJECT = "INSPECT_PROJECT";

   public static final String REVISION = "REVISION";

   public static final String INSPECT_CERTIFICATE = "INSPECT_CERTIFICATE";

   @Override
   protected Serializable pkVal() {
      return this.handle;
   }

   @Override
   public String toString() {
      return "InspectPlanDetail{" +
         "handle = " + handle +
         ", planBo = " + planBo +
         ", inspectType = " + inspectType +
         ", category = " + category +
         ", time = " + time +
         ", unit = " + unit +
         ", batchInterval = " + batchInterval +
         ", isSample = " + isSample +
         ", sampleStandard = " + sampleStandard +
         ", inspectProject = " + inspectProject +
         ", revision = " + revision +
         ", inspectCertificate = " + inspectCertificate +
         "}";
   }
   @Override
   public boolean equals(Object obj) {
      if (this == obj)
         return true;
      if (obj == null)
         return false;
      if (getClass() != obj.getClass())
         return false;
      InspectPlanDetail other = (InspectPlanDetail) obj;
      if (handle == null) {
         if (other.handle != null)
            return false;
      } else if (!handle.equals(other.handle))
         return false;

      if (planBo == null) {
         if (other.planBo != null)
            return false;
      } else if (!planBo.equals(other.planBo))
         return false;

      if (inspectType == null) {
         if (other.inspectType != null)
            return false;
      } else if (!inspectType.equals(other.inspectType))
         return false;

      if (category == null) {
         if (other.category != null)
            return false;
      } else if (!category.equals(other.category))
         return false;

      if (time == null) {
         if (other.time != null)
         return false;
      } else if (!time.equals(other.time))
         return false;

      if (unit == null) {
         if (other.unit != null)
            return false;
      } else if (!unit.equals(other.unit))
         return false;

      if (batchInterval == null) {
         if (other.batchInterval != null)
            return false;
      } else if (!batchInterval.equals(other.batchInterval))
         return false;

      if (isSample == null) {
         if (other.isSample != null)
            return false;
      } else if (!isSample.equals(other.isSample))
         return false;

      if (sampleStandard == null) {
         if (other.sampleStandard != null)
            return false;
      } else if (!sampleStandard.equals(other.sampleStandard))
         return false;

      if (inspectProject == null) {
         if (other.inspectProject != null)
            return false;
      } else if (!inspectProject.equals(other.inspectProject))
         return false;

      if (revision == null) {
         if (other.revision != null)
            return false;
      } else if (!revision.equals(other.revision))
         return false;

      if (inspectCertificate == null) {
         if (other.inspectCertificate != null)
            return false;
      } else if (!inspectCertificate.equals(other.inspectCertificate))
         return false;
      return true;
   }
}